use std::{thread, time::Duration};

#[test]
fn it_works() {
    let duration = Duration::from_millis(3000);
    thread::spawn(move || {
        thread::sleep(duration);
    });

    assert_eq!(duration.as_millis(), 3000);
    println!("{:?}", duration);
}

// fn inner_fn(vref: &mut Vec<u32>) {
//     std::thread::spawn(move || {
//         vref.push(1);
//     });
// }
#[test]
fn inner_it_works() {
    let mut v = vec![1, 2, 3];
    // inner_fn(&mut v);
}
